package com.chainshop.procurement.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chainshop.common.annotation.Excel;
import com.chainshop.common.core.domain.BaseEntity;

/**
 * 存储采购清单中的商品信息对象 procurement_items
 * 
 * @author zzd
 * @date 2024-08-14
 */
public class ProcurementItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购清单ID */
    @Excel(name = "采购清单ID")
    private String purchaseListId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long variantId;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalPrice;

    public void setPurchaseListId(String purchaseListId) 
    {
        this.purchaseListId = purchaseListId;
    }

    public String getPurchaseListId() 
    {
        return purchaseListId;
    }
    public void setVariantId(Long variantId) 
    {
        this.variantId = variantId;
    }

    public Long getVariantId() 
    {
        return variantId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseListId", getPurchaseListId())
            .append("variantId", getVariantId())
            .append("price", getPrice())
            .append("quantity", getQuantity())
            .append("totalPrice", getTotalPrice())
            .toString();
    }
}
